package com.cloud.wms.ui.group.entity;

import android.os.Parcel;

import com.cloud.wms.ui.main.entity.CommodityEntity;

/**
 * @Author:Chen
 * @Date: 2021-03-10 16:57
 * @Description:
 */
public class SamplingCommodityEntity extends CommodityEntity {
    private int scanAmount;

    public int getScanAmount() {
        return scanAmount;
    }

    public void setScanAmount(int scanAmount) {
        this.scanAmount = scanAmount;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeInt(this.scanAmount);
    }

    public SamplingCommodityEntity() {
    }

    protected SamplingCommodityEntity(Parcel in) {
        super(in);
        this.scanAmount = in.readInt();
    }

    public static final Creator<SamplingCommodityEntity> CREATOR = new Creator<SamplingCommodityEntity>() {
        @Override
        public SamplingCommodityEntity createFromParcel(Parcel source) {
            return new SamplingCommodityEntity(source);
        }

        @Override
        public SamplingCommodityEntity[] newArray(int size) {
            return new SamplingCommodityEntity[size];
        }
    };
}
